package com.ct.mappers;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

/**
 * 审批状态表 数据库操作接口
 */
@Mapper
public interface ApprovalMapper<T, P> extends BaseMapper<T, P> {

    /**
     * 根据ApprovalId更新
     */
    Integer updateByApprovalId(@Param("bean") T t, @Param("approvalId") Integer approvalId);

    /**
     * 根据ApprovalId删除
     */
    Integer deleteByApprovalId(@Param("approvalId") Integer approvalId);

    /**
     * 根据ApprovalId获取对象
     */
    T selectByApprovalId(@Param("approvalId") Integer approvalId);

    T selectByTravelId(@Param("travelId") Integer travelId);

}
